<%@ taglib prefix="s" uri="/struts-tags"%>

<s:if test="${!accountForm.myList}">
	<p>&nbsp;</p>
	<table align="right" bgcolor="#008800" border="0" cellspacing="2" cellpadding="3">
		<tr bgcolor="#CCCCCC">
			<td>
				<font size="4"><b>Pet Favorites</b></font>
				<font size="2"><i><br/>Shop for more of your<br/>favorite pets here.</i></font>
			</td>
		</tr>
		
		<tr bgcolor="#FFFF88">
			<td>
				<s:iterator value="product"	id="${accountForm.myList.pageList}">
					<s:a action="/shop/viewProduct.do">
						<s:param name="productId" value="${product.productId}"/>
						<s:property value="${product.name}" />
					</s:a>
					<br/>
					<font size="2">(<s:property value="${product.productId}"/>)</font>
					<br/>
				</s:iterator>
			</td>
		</tr>
		
		<tr>
			<td>
				<s:if test="${!accountForm.myList.firstPage}">
					<s:a action="viewCart.do?page=previous">
						<font color="white"><B>&lt;&lt;Prev</B></font>
					</s:a>
				</s:if>
				<s:if test="${!accountForm.myList.lastPage}">
					<s:a action="viewCart.do?page=next">
						<font color="white"><B>Next&gt;&gt;</B></font>
					</s:a>
				</s:if>
			</td>
		</tr>

	</table>
</s:if>
